package cn.hxth.cloud.api.mapper;


import cn.hxth.cloud.api.domain.OrderInfo;
import cn.hxth.cloud.api.tk.mapper.MyMapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface OrderInfoMapper extends MyMapper<OrderInfo> {
    @Update("UPDATE order_info SET status=#{status} WHERE id=#{id}")
public Boolean updateStatus(OrderInfo orderInfo) ;
    @Select("SELECT * FROM order_info WHERE now()-delivery_date&lt;=3")
    public List<OrderInfo> selectSpeedOrder() ;

}
